package com.qingzhuge.exception;


import com.qingzhuge.common.HttpCode;

import java.util.Map;

/**
 * @author : zero.xiao
 * @description :任务执行异常
 * @modified :
 */
public class ScheduledException extends BaseException {

    private static final long serialVersionUID = -3100648913329749866L;

    public ScheduledException() {
        super(HttpCode.SCHEDULER_RUN_ERROR.message());
    }

    public ScheduledException(Map<String,Object> data) {
        super(data);
    }

    public ScheduledException(String message) {
        super(message);
    }

    public ScheduledException(Throwable ex) {
        super(ex);
    }

    public ScheduledException(String message, Exception e) {
        super(message, e);
    }

    public ScheduledException(String message, int code) {
        super(message, code);
    }

    public ScheduledException(String message, Map<String, Object> data, int code) {
        super(message, data, code);
    }

    @Override
    public int getCode() {
        return HttpCode.SCHEDULER_RUN_ERROR.value();
    }
}